﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AfvandingService.DOAs
{
    public interface ICentralDOA
    {
        void OpretPumpestation(Pumpestation ps);
        void OpdatérPumpestation(int psnr, string netværksadd, string ip, int port, string vandstandsrisiko, double vandstand);
        void SletPumpestation(int psnr);
        double EnPSVandstand(int psnr);
        List<double> AllePSVandstande();
        List<Pumpestation> HentPumpestationerOgPumper();
        List<Pumpe> HentPumpestationsPumper(int psnr, SqlConnection conn);

        // --- Log SQL --- //
        void OpretLogEntry(DateTime tidspunkt, int psnr, double vandstand);
        Dictionary<double, DateTime> HentLog(int psnr);
    }
}
